package cn.wgx.study.base.zuul.service;

import cn.wgx.study.base.zuul.hystrix.AdminHy;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-admin", fallback = AdminHy.class)
public interface AdminService {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    String getProfile();

}
